package me.gerry.locktest.monitor;

import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;

/**
 * Created by gerry on 2018/6/24.
 */

public class ScreenOnMonitor extends Monitor {

    public ScreenOnMonitor(Context context) {
        super(context);
    }

    @Override
    public void register() {
        IntentFilter filter = new IntentFilter();
        filter.setPriority(1000);
        filter.addAction(Intent.ACTION_SCREEN_ON);
        getContext().registerReceiver(this, filter);
    }

    @Override
    public void onReceive(Context context, Intent intent) {

    }
}
